<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
	<head>
	    <title>
			<s:text name="label.student_subject_marks.h1_1"/>
			"<s:property value="alu.nombre"/>"
			<s:text name="label.student_subject_marks.h1_2"/>
			"<s:property value="asig.nombre"/>"
		</title>
		<link href="<s:url value='/css/main.css'/>" rel="stylesheet" type="text/css"/>
	</head>
	<body>
		<div class="titleDiv">
			<s:text name="label.title_body"/>
		</div>
		
		<h1>
			<s:text name="label.student_subject_marks.h1_1"/>
			"<s:property value="alu.nombre"/>"
			<s:text name="label.student_subject_marks.h1_2"/>
			"<s:property value="asig.nombre"/>"
		</h1>
		<table class="borderAll">
		    <tr>
		        <th>
					<s:text name="label.student.id"/>
				</th>
		        <th>
					<s:text name="label.student.name"/>
				</th>
		        <th>
					<s:text name="label.student.phone"/>
				</th>
		    </tr>
	        <tr class="even">
	            <td>
					<s:property value="alu.dni"/>
				</td>
	            <td>
					<s:property value="alu.nombre"/>
				</td>
	            <td>
					<s:property value="alu.telefono"/>
				</td>
	        </tr>
		</table>
		<br/>
		<table class="borderAll">
		    <tr>
		        <th>
					<s:text name="label.subject.code"/>
				</th>
		        <th>
					<s:text name="label.subject.name"/>
				</th>
		        <th>
					<s:text name="label.subject.credits"/>
				</th>
				<th>
					<s:text name="label.subject.lecturer"/>
				</th>
				<th>
					<s:text name="label.subject.student_number"/>
				</th>
		    </tr>
	        <tr class="even">
	            <td>
					<s:property value="asig.codigo"/>
				</td>
	            <td>
					<s:property value="asig.nombre"/>
				</td>
	            <td>
					<s:property value="asig.creditos"/>
				</td>
				 <td>
					<s:property value="asig.profesor.nombre"/>
				</td>
				 <td>
					<s:property value="asig.alumnos.size"/>
				</td>
	        </tr>
		</table>
		<br/>
		<br/>
		<br/>		
		<table class="borderAll">
		    <tr>
		        <th>
					<s:text name="label.evaluation.id"/>
				</th>
		        <th>
					<s:text name="label.evaluation.concept"/>
				</th>
		        <th>
					<s:text name="label.evaluation.mark"/>
				</th>
		    </tr>
		    <s:iterator value="evaluationSet" status="status">
		        <tr class="<s:if test='#status.even'>even</s:if><s:else>odd</s:else>">
		            <td>
						<s:property value="id"/>
					</td>
		            <td>
						<s:property value="concepto"/>
					</td>
		            <td>
						<s:property value="nota"/>
					</td>
		        </tr>
		    </s:iterator>
		</table>
		<br/>
		<s:form action="doStudent" method="post">
		    <s:submit value="%{getText('label.student_marks.button')}"/>
		</s:form>
	</body>
</html>